package com.github.caijh.mall.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.caijh.mall.article.model.Article;
import com.github.caijh.mall.article.request.ArticleSearchRequest;
import com.github.caijh.mall.article.vo.ArticleVo;
import com.github.caijh.mall.common.PageParams;
import com.github.pagehelper.PageInfo;

/**
 * ArticleService 接口
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
public interface ArticleService extends IService<Article> {

    PageInfo<ArticleVo> getList(ArticleSearchRequest request, PageParams pageParams);

    boolean update(Integer id, Integer productId);

    ArticleVo getVoByFront(Integer id);

}
